package org.csu.springjpetstore.service;

import org.csu.springjpetstore.domain.Sequence;
import org.csu.springjpetstore.persistence.SequenceDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SequenceService {
    @Autowired
    private SequenceDAO sequenceDAO;

    public Sequence getSequenceByNameService(String sequenceName) {
        return sequenceDAO.getSequenceByName(sequenceName);
    }

    public void updateSequenceService(Sequence sequence) {
        sequenceDAO.updateSequence(sequence);
    }


}
